package com.meijin.spring6.cycle;

/**
 * @Author meijindeng
 * @Data 2023-09-02 00:17
 * @Description Student 实体类
 * @Version 1.0
 */

public class Student {

    private String name;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        System.out.println("2、给 bean 对象设置属性值。。。");
        this.name = name;
    }

    public Student() {
        System.out.println("1、Student 的无参构造执行了。。。");
    }

    public Student(String name) {
        this.name = name;
    }

    public void initMethod() {
        System.out.println("4、bean 对象初始化，调用指定的初始化方法。。。");
    }

    public void destroyMethod() {
        System.out.println("7、bean 对象销毁，调用指定的销毁方法。。。");
    }
}
